<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
    <head>
        <th:block th:include="include::header('检查整改反馈')" />
    </head>
    <style type="text/css">
        #febs-hazardExamineRectify {

        }
    </style>
    <body class="febs-container" id="febs-hazardExamineRectify">
        <div class="febs-body layui-fluid"  lay-title="检查整改反馈" >
            <div class="febs-body-search">
                <form class="jhg-body layui-form layui-table-form" lay-filter="hazardExamineRectify-table-form" id="hazardExamineRectify-table-form">
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <div class="layui-form-item">
                                <div class="layui-inline" th:if="${hasHeadCompanyRole }">
                                    <label class="layui-form-label layui-form-label-sm">公司名称</label>
                                    <div class="layui-input-inline" style="width:240px;">
                                        <select name="tenantSelect" id="tenantSelect" lay-search="" >
                                            <option th:each="item:${tenantList }"
                                                    th:value="${item.tenantId}" th:text="${item.tenantName}"
                                                    th:selected="${currentTenantId ==item.tenantId}">
                                        </select>
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label layui-form-label-sm">检查编号</label>
                                    <div class="layui-input-inline" >
                                        <input type="text" name="examineNo" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label layui-form-label-sm">检查标题</label>
                                    <div class="layui-input-inline" >
                                        <input type="text" name="examineTitle" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label layui-form-label-sm">检查类型</label>
                                    <div class="layui-input-inline" style="width: 240px;">
                                        <select name="examineType" id="examineType" lay-search="" >
                                            <option value="">请选择</option>
                                            <option value="1">公司检查</option>
                                            <option value="2">部门检查</option>
                                            <option value="3">车间检查</option>
                                            <option value="4">班组检查</option>
                                            <option value="5">项目检查</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <div id="query" class="layui-btn">
                                        <em class="layui-icon">&#xe615;</em> 查询
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="febs-table-full">
                <table lay-filter="hazardExamineRectifyTable"  lay-data="{id: 'hazardExamineRectifyTable'}"></table>
            </div>
        </div>
        <th:block th:include="include::foot" />
        <script type="text/html" id="hazardExamineRectify-tool">
            <span shiro:lacksPermission="hazardExamineRectify:rectify">
                <span class="layui-badge-dot febs-bg-orange"></span> 无权限
             </span>

            {{# if(d.examineStatus!='4'){ }}

                {{# if(d.examineRecordId && (d.status=='2'|| d.status=='5')){  }}
                    <button type="button" lay-event="rectify" class="layui-btn layui-btn-xs  layui-btn-primary layui-border-orange"
                            shiro:hasPermission="hazardExamineRectify:rectify">
                        <em class="layui-icon layui-icon-edit"></em>整改
                    </button>
                {{# } else { }}
                - -
                {{# } }}

            {{# }else{  }}
            - -
            {{# }  }}


        </script>

        <script data-th-inline="javascript" >
            currentTenantId = [[${tenantId}]],
            hasHeadCompanyRole = [[${hasHeadCompanyRole}]];
        </script>
        <script th:src="@{/febs/js/hazard/hazardExamineRectify/hazardExamineRectifyList.js(v=1)}"></script>
    </body>
</html>